package model;

import java.util.List;

public class Role {
    //标识列
    private Integer roleId;
    //角色名称
    private String roleName;
    //角色状态
    private Integer roleState;

    //保证多表关系
    private List<User> users;
    private List<Menu> menus;

    public List<Menu> getMenus() {
        return menus;
    }

    public void setMenus(List<Menu> menus) {
        this.menus = menus;
    }

    @Override
    public String toString() {
        return "Role{" +
                "roleId=" + roleId +
                ", roleName='" + roleName + '\'' +
                ", roleState=" + roleState +
                ", users=" + users +
                ", menus=" + menus +
                '}';
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Integer getRoleState() {
        return roleState;
    }

    public void setRoleState(Integer roleState) {
        this.roleState = roleState;
    }

    public List<User> getUsers() {
        return users;
    }

    public void setUsers(List<User> users) {
        this.users = users;
    }

    public Role(Integer roleId, String roleName, Integer roleState, List<User> users, List<Menu> menus) {
        this.roleId = roleId;
        this.roleName = roleName;
        this.roleState = roleState;
        this.users = users;
        this.menus = menus;
    }

    public Role() {
    }
}
